# -*- coding: utf-8 -*-
"""
author:码同学 极光
date:2023/10/22
desc: 
sample: 
"""
# 生成一个指定范围内的随机整数
import random

random_int = random.randint(1, 100)

print(random_int)

while True:
    try:
        input_number = input('请输入数字')
        if int(input_number) == random_int:
            print("您猜对了")
            break
        else:
            print('请继续输入数字')
    except:
        print('数据格式不对')


